home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bc_ti.zip / TI804.ASC < prev    next >
Text File  |  1992-02-25  |  707b  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Turbo C++                              NUMBER  :  804
  9.   VERSION  :  All
  10.        OS  :  DOS
  11.      DATE  :  February 25, 1992                        PAGE  :  1/1
  12.  
  13.     TITLE  :  Spawning a batch (.bat) file
  14.  
  15.  
  16.  
  17.  
  18.   To spawn a batch file, you must spawn the command processor with
  19.   the batch file as an argument.  For example:
  20.  
  21.       spawnl(P_WAIT, "c:\\command.com",
  22.           "c:\\command.com","/c", "file.bat", NULL);
  23.  
  24.   This example will spawn command.com assuming it is located in the
  25.   root directory of drive C and then tell command.com to execute a
  26.   batch file called file.bat!
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.